/* @flow */

import React, { Component } from 'react';
import {
  View,
  Text,
  StyleSheet,
} from 'react-native';
import type { Children } from 'react';

export default class TextView extends Component {
  static defaultProps = {
    text:'default text',
    textStyle:{},
  }
  constructor(props){
  	super(props);
  	this.state = {};
  }
  render() {
    return (
      <View style={this.props.style}>
        <Text style={[styles.textStyle,this.props.textStyle]}>{this.props.text}</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent:'center'
  },
  textStyle:{

  },
});
